<!DOCTYPE HTML>
<script src="../resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
  document.getElementById('container').style.justifyContent = 'space-between';
}
onload = runRepaintAndPixelTest;
</script>
<style>
body {
  margin: 0;
}
#container {
  display: flex;
  justify-content: space-around;
  width: 200px;
  height: 300px;
  background-color: orange;
}
.item {
  background-color: green;
  border: solid thin blue;
  width: 50px;
}
</style>
<p style="height: 20px">Tests invalidation on justify-content style change. Passes if only one big orange bar appear in the middle of the box.</p>
<div id="container">
  <div class="item">
    <div style="height: 50px"></div>
  </div>
  <div class="item">
    <div style="height: 50px"></div>
  </div>
</div>
